﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Masters/Default.Master" AutoEventWireup="true" CodeBehind="UserAndPermission.aspx.cs" Inherits="Hutech.CRM.Web.Admin.UserAndPermission" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <!-- Check all -->
     <script type="text/javascript">
         $(function () {
             var _control = document.getElementById('<%= CheckSelectAll.ClientID %>');
             $(_control).click(function () {
                 var checked_status = this.checked;
                 $("input[type='checkbox']").each(function () {
                     this.checked = checked_status;
                 });
             });

             $("input:checkbox[id$CheckBoxSelect]").click(function () {
                 if ($("input:checkbox[id$:CheckBoxSelect]:checked").length == $("input:checkbox[id$:CheckBoxSelect]").length - 1)
                     $(_control).removeAttr("Checked");
             });
         });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
<span id="tabid" style="display: none">AdminMenu</span>

    <div class="modulecontent">
        <asp:HiddenField ID="HiddenFieldUserID" runat="server" />
        

        <div class="catology-metro">
            <div class="left"><img class="ImageNomalHome-32" title="Home" src="../Resources/img/none-32.png" /></div>
            <asp:HyperLink ID="lnkAdminMenu" runat="server" NavigateUrl="~/Admin/AdminMenu.aspx" />&nbsp;&gt;
            <asp:HyperLink ID="lnkRoleManager" runat="server" NavigateUrl="~/Admin/MemberList.aspx" />&nbsp;&gt;
            <b>
                <span id="spnTitle" runat="server"></span>
            </b>
        </div>
        <div class="settingrow">
            <asp:CheckBox ID="CheckSelectAll" runat="server" Text="Chọn tất cả" />&nbsp;<asp:LinkButton ID="LinkButtonUpdate" runat="server" Text="Cập nhật" Width="100px" />
            <hr />
            <%--<i>Chú ý: Chức năng Xoá hiện chưa được cập nhật. Vui lòng cẩn trọng khi thêm Module mới.</i><br />--%>
            <asp:DataList ID="DataListAction" DataKeyField="ActionGuid" runat="server">
                <ItemTemplate>
                    <asp:HiddenField ID="HiddenFieldActionGuid" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ActionGuid") %>'/>
                    <asp:CheckBox ID="CheckBoxSelect" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsSelect") %>' />
                    <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "ActionName") %>' runat="server" ID="Label1" />: &nbsp;
                    <i><asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>' runat="server" ID="Label2" /></i>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentLeft" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contentRight" runat="server">
</asp:Content>
